const webpack = require('webpack');
const path = require('path');

module.exports = {
  mode: "production",
  entry: {
    bundle: ['react', 'react-dom'],
  },
  output: {
    path: path.join(__dirname, "build"),
    filename: '[name].js',
    library: '[name]_library'
  },
  plugins: [
    new webpack.DllPlugin({
      path: './build/bundle.manifest.json',
      name: '[name]_library',
    })
  ]
};